package factory;

import bean.AirPlane;

/*
* 实例工厂
* */
public class AirPlanInstanceFactory {

    public AirPlane getAirPlane(String jzName){
        System.out.println("静态工厂正在造飞机");
        AirPlane ap = new AirPlane();
        ap.setFdj("太行");
        ap.setJznam(jzName);
        ap.setPersonNum(300);
        ap.setYc("100M");
        return ap;
    }

}
